package bosc.cn.converter.transaction;

import bosc.cn.dto.transaction.TransactionStatusResDTO;
import bosc.cn.service.transaction.bo.TransactionStatusResBO;

public class TransactionStatusResConverter {

    public static TransactionStatusResDTO toDTO(TransactionStatusResBO bo) {
        if (bo == null) {
            return null;
        }
        TransactionStatusResDTO dto = new TransactionStatusResDTO();
        dto.setPrcSts(bo.getPrcSts());
        dto.setPrcMsg(bo.getPrcMsg());
        dto.setTxnSts(bo.getTxnSts());

        return dto;
    }
}
